package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"qiyu-contact/internal/model/entity"
)

type FindFriendReq struct {
	g.Meta   `mime:"application/json;charset=utf-8" path:"/friend/list" method:"post" sm:"查找用户" tags:"查找用户"`
	Account  string `p:"account" example:"100001"`
	Nickname string `p:"nickname" example:"奇遇"`
	PageNum  int    `p:"pageNum" v:"required|min:1#参数缺失|参数错误" dc:"1" example:"1"`
	PageSize int    `p:"pageSize" v:"required|min:10|max:20#参数缺失|参数错误|参数错误" dc:"10" example:"10"`
}
type FindFriendRes struct {
	g.Meta   `mime:"application/json"`
	List     []*entity.WebChatUser `json:"list"`
	PageSize int                   `json:"pageSize"`
	PageNum  int                   `json:"pageNum"`
	Total    int                   `json:"total"`
}
type DelFriendReq struct {
	g.Meta `mime:"application/json;charset=utf-8" path:"/friend/del" method:"post" sm:"删除朋友" tags:"删除朋友"`
	UserId string `p:"userId" v:"required#用户查询错误" example:"1"`
}
type DelFriendRes struct {
}
type BlockFriendReq struct {
	g.Meta `mime:"application/json;charset=utf-8" path:"/friend/block" method:"post" sm:"拉黑朋友" tags:"拉黑朋友"`
	UserId string `p:"userId" v:"required#用户查询错误" example:"10001"`
}
type BlockFriendRes struct {
}
type AddFriendReq struct {
	g.Meta        `mime:"application/json;charset=utf-8" path:"/friend/add" method:"post" sm:"添加朋友" tags:"添加朋友"`
	FriendAccount string `p:"friendAccount" v:"required#用户查询错误" example:"10001"`
	Remark        string `p:"remark" example:"晴天小猪"`
}
type AddFriendRes struct{}
